package com.gxa.modules.service.accessservice.impl;

import com.gxa.common.R;
import com.gxa.modules.mapper.accessmapper.SelectMapper;
import com.gxa.modules.service.accessservice.SelectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SelectServiceImpl implements SelectService {

    @Autowired
    private SelectMapper selectMapper;

    @Override
    public R selectPushMode() {
        R<Object> r = new R<>();
        r.setCode(200);
        r.setMsg("查询成功！");
        r.setData(selectMapper.selectPushMode());
        return r;
    }

    @Override
    public R selectRoleType() {
        R<Object> r = new R<>();
        r.setCode(200);
        r.setMsg("查询成功！");
        r.setData(selectMapper.selectRoleType());
        return r;
    }

    @Override
    public R selectAlarmType() {
        R<Object> r = new R<>();
        r.setCode(200);
        r.setMsg("查询成功！");
        r.setData(selectMapper.selectAlarmType());
        return r;
    }

    @Override
    public R selectProjectStatus() {
        R<Object> r = new R<>();
        r.setCode(200);
        r.setMsg("查询成功！");
        r.setData(selectMapper.selectProjectStatus());
        return r;
    }

    @Override
    public R selectProjectType() {
        R<Object> r = new R<>();
        r.setCode(200);
        r.setMsg("查询成功！");
        r.setData(selectMapper.selectProjectType());
        return r;
    }


}
